package cn.zl.springbootredis.service.UserServiceImpl;

import cn.zl.springbootredis.dao.StudentDao;
import cn.zl.springbootredis.entity.Student;
import cn.zl.springbootredis.service.UserService.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description:
 * @Author: zhanglang
 * @Date: 2020/9/8 8:56
 */
@Service
@Transactional
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> findAll() {
        return studentDao.findAll();
    }
}
